package com.autumn.jvm.jvm;

/**
 * @author: Autumn
 * @describe:
 * @date: 2022/10/3 0003
 * @modified By:
 */
public class StackOverflowTest {
    // JVM设置
    // -Xss：128（-Xss默认1M）
    static int count = 0;

    static void redo() {
        count++;
        redo();
    }

    public static void main(String[] args) {
        try {
            redo();
        } catch (Exception e) {
            e.printStackTrace();
            System.out.println("count:" + count);
        }
    }
}
